package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.ShoppingCart;

/**
 * @author Mylinja 2021-12-21 星期二 17:17
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 添加购物车方法
     *
     * @param shoppingCart 用户传递的菜品或套餐信息
     * @return 返回添加到购物车的对象
     */
    ShoppingCart addCart(ShoppingCart shoppingCart);

    /**
     * 删除一条购物车里面的条目
     *
     * @param shoppingCart 用来封装setmealId
     * @return 返回购物车对象
     */
    ShoppingCart deleteInShoppingCart(ShoppingCart shoppingCart);
}
